import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p002 from './p002';

export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// 下拉框联动
	const n = fd.data.node.querySelector<HTMLSelectElement>('[data-id="plan_cla_attr_no"]');
	const v = n.value;
	console.log(v);

	const res = await nodejs('wangju/zj-000004/s002', {
		plan_cla_attr_no: v
	});
	render(fd, res, p002, 'p002', 'inner');
}
